package br.com.ordersys.framework.db;

public class DBError extends RuntimeException {
	public DBError(String msg) {
		super(msg);
	}
	
	public static void throwMe(Throwable e) {
		if(e instanceof DBError) {
			throw (DBError)e;
		}
		
		RuntimeException re = new DBError(e.getMessage());
		re.initCause(e);
		throw re;
	}
}
